package com.twentyfour.service;

import com.twentyfour.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LeaderService {


    int addAthlete(Athlete athlete);
    int addCoach(Coach coach);
    int addDoctor(Doctor doctor);
    int addReferee(Referee referee);
    int addLeader(Leader leader);
    int addAthleteItem(Athlete_Item athlete_item);


    int deleteAthlete(Integer athleteId);
    int deleteCoach(Integer coachId);
    int deleteDoctor(Integer doctorId);
    int deleteReferee(Integer refereeId);
    int deleteLeader(Integer leaderId);

    int updateAthlete(Athlete athlete);
    int updateCoach(Coach coach);
    int updateDoctor(Doctor doctor);
    int updateReferee(Referee referee);
    int updateLeader(Leader leader);

    List<Athlete> queryAthletesByTeamAccount(Integer teamAccount);
    List<Coach> queryCoachByTeamAccount(Integer teamAccount);
    List<Doctor> queryDoctorByTeamAccount(Integer teamAccount);
    List<Referee> queryRefereeByTeamAccount(Integer teamAccount);
    List<Leader> queryLeaderByTeamAccount(Integer teamAccount);

    List<Athlete_Item> queryAthleteItemByAthleteId(Integer athleteId);
}
